<div class="row-fluid">
                <div class="span12 box bordered-box blue-border ">
                
                  <div class="box-header contrast-background">
                    <div class="title">
                      <i class="icon-ban-circle"></i>
                      {{attrs.title}}
                    </div>
                    <div class="actions">
                      {{#if attrs.hasRemove}}
	        			<a class="btn box-remove btn-mini btn-link" href="#"><i class='icon-remove'></i>
	            		</a>
	        		  {{/if}}
                      
                       {{#if attrs.hasCollapse}}
	           			 <a class="btn box-collapse btn-mini btn-link" href="#"><i></i>
	                     </a>
	                   {{/if}}
                    </div>
                  </div>
                  
                  
                  <div class="box-content box-double-padding">
                    <form style="margin-bottom: 0;" class="form">
                      
                      	{{#each attrs.blocks}}
		                      <fieldset>
		                        <div class="span4">
		                          <div class="lead">
		                            <i class="icon-github text-contrast"></i>
		                            {{this.title}}
		                          </div>
		                          <small class="muted">{{this.description}}</small>
		                        </div>
		                        <div class="span7 offset1">
		                          	
		                          	
		                          	{{#each this.controls}}
		                          		
												<div class='control-group'>
													
													{{#if this.isHidden}}
															<input id="{{this.id}}" name="{{this.name}}" type="hidden" value="{{this.value}}" />
													
													{{else}}
														    <label class="control-label" for="{{this.name}}">{{this.label}}</label>
														    <div class="controls">
															{{#if this.isPassword}}
																	<input {{#if this.validations.minlength}}
																			data-rule-minlength='{{this.validations.minlength}}'
																	{{/if}}
																		
																	{{#if this.validations.required}}
																		data-rule-password='true' data-rule-required='true'
																	{{/if}}
																	 id='{{this.id}}'  placeholder='Password' type='{{this.type}}'>
															{{else}}
																	{{#if this.isCheckBox}}				
																		<input type="checkbox" name="{{this.name}}" class="" style="margin-left: 30px;" value="1"/>	
															{{else}}
																	{{#if this.isSelect}}
																		<input type="hidden" id="{{this.id}}" style="width:35%"/>
															{{else}}		
																	{{#if this.isMultiSelect}}	
																		<input type="hidden" id="{{this.id}}" multiple="multiple" style="width:35%"/>		
															{{else}}
																	{{#if this.isDatepicker}}
																				<input id="{{this.id}}" name="{{this.name}}" type="text" class="datepicker J-{{this.name}}" data-datepicker-defaultDate="{{this.value}}" />
																				<input name="timezone" type="hidden" value="{{this.timezone}}"/>
															{{else}}
																	{{#if this.isDaterange}}
																		<input name="timezone" type="hidden" value="{{this.timezone}}"/>
																		<input name="{{this.beginName}}" type="text" class="datepicker J-{{this.beginName}}" data-datepicker-defaultDate="{{this.beginValue}}"/>
																			到
																		<input name="{{this.endName}}" type="text" class="datepicker J-{{this.endName}}" data-datepicker-defaultDate="{{this.endValue}}"/>
															{{else}}
																	{{#if this.isRange}}
																		<input name="{{this.minName}}" type="text" class="nc-form-textfield-range J-{{this.minName}}" />
																		到
																		<input name="{{this.maxName}}" type="text" class="nc-form-textfield-range J-{{this.maxName}}" />
															{{else}}
																	{{#if this.isTextarea}}
																	    <{{this.type}} id="{{this.id}}" rows="{{this.rows}}" name="{{this.name}}" class="" placeholder="{{this.placeholder}}" style="{{this.style}}">{{this.value}}</{{this.type}}>
															{{else}}
																	<input 
																	{{#if this.validations.minlength}}
																	   data-rule-minlength='{{this.validations.minlength}}'
																	{{/if}}
																	{{#if this.validations.required}}
																		data-rule-required='true'
																	{{/if}}
																	{{#if this.validations.equalto}}
																		data-rule-equalto='#{{this.validations.equalto}}'
																	{{/if}}											
																	id={{this.id}} name="{{this.name}}" type="{{this.type}}" value="{{this.value}}" class="nc-form-textfield J-{{this.name}}"  placeholder="{{this.placeholder}}" style="{{this.style}}"/>
															{{/if}}
															{{/if}}
															{{/if}}
															{{/if}}
															{{/if}} 
															{{/if}}
															{{/if}}
															{{/if}}
															</div>
														
													{{/if}}
												</div>
		                          		
		                          	{{/each}}
		                          
									 <div class="text-right">
											{{#each this.buttons}}
											    <button id='{{this.id}}' class='btn btn-contrast btn-normal' name='{{this.name}}' type='{{this.type}}'>
											      <i class='icon-{{this.icon}}'></i>{{this.text}}
											    </button>
											{{/each}}
						       		 </div>	
										
		                          
		                          
		                          
		                          
		                          
		                        </div>
		                      </fieldset>
		                      <hr class="hr-normal">
                     	{{/each}}


                    </form>
                  </div>
                  
   </div>
</div>
